const REGEXP = {
  //邮箱
  checkEmail:(val)=>/^\w+@[a-z0-9]+\.[a-z]+$/i.test(val),
  //密码
  checkPassword:(val)=>/.{6,30}/.test(val),
  //昵称
  checkNickname:(val)=>/.{2,6}/.test(val),
  //网址
  // eslint-disable-next-line
  checkWebUrl:(val)=>/(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?/.test(val)
}

export default REGEXP 
